import antfu from '@antfu/eslint-config'

export default antfu({
  // TypeScript and Vue are autodetected, you can also explicitly enable them:
  typescript: true,
  vue: true,
  // unocss: true,
  // Disable jsonc and yaml support
  jsonc: false,
  yaml: false,

  // `.eslintignore` is no longer supported in Flat config, use `ignores` instead
  ignores: [
    // ...globs
  ],
}, {
  rules: {
    // 'style/semi': ['error', 'always'],
    'no-console': 'off',
    'no-debugger': 'off',
    'unused-imports/no-unused-vars': 'off',
    'unused-imports/no-unused-imports': 'off',
    'node/prefer-global/process': 'off',
    'no-async-promise-executor': 'off',
  },
})
